/**
 * Created by yangjingbo on 17-5-11.
 */
angular.module('uploadStaff', []).component(
    'uploadStaff',
    {
        templateUrl: 'component/base/uploadStaffinf/uploadStaffInf.html',
        controller: ['$scope', 'ElePosition', 'EleStyle', 'Event','Api','Alert', function ($scope, ElePosition, EleStyle, Event,Api,Alert) {
            $scope.uploadStaffExcel=uploadStaffExcel;
            
            function uploadStaffExcel(file) {
                Api.uploadExcel(file,function () {
                    location.reload()
                },function () {
                    Alert.alertBox('上传失败')
                })
            }

        }]
    }
);